import Vue from 'vue'
import App from './App'
import routes from './router'
import ElementUI from 'element-ui'
import VueRouter from 'vue-router'
import store from './store'

Vue.use(ElementUI);
Vue.use(VueRouter)

import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/font-awesome.css'
import './assets/css/common.css'


// 测试环境
Vue.prototype.$baseURL = 'https://bdtest.huashouren.com'	//内部服务器
Vue.prototype.$siteURL = 'https://bdtesth5.huashouren.com'	//外部api
Vue.prototype.$backend = 'https://test-api.huashouren.com'	//中后台api

//生产环境
// Vue.prototype.$baseURL = 'https://bdprod.huashouren.com'	//内部服务器
// Vue.prototype.$siteURL = 'https://bdh5.huashouren.com'		//外部api
// Vue.prototype.$backend = 'https://api.huashouren.com'	//中后台api


const router = new VueRouter({
	mode: 'history',
	routes: routes
})

new Vue({
	el: '#app',
	router,
	store,
	render: h => h(App)
})
